package com.example.xsm.newsapp;

import android.app.Application;

import cn.jpush.android.api.JPushInterface;

/**
 * Created by xsm on 16-10-24.
 */

public class MainApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        //初始化极光推送
        if (BuildConfig.DEBUG) {
            JPushInterface.setDebugMode(true);
        }
        JPushInterface.init(this);
    }
}
